@use './reset.scss';
@use './variables.scss' as *;
@use './light-theme.scss';
@use './dark-theme.scss';


/**
 * NProgress 进度条样式自定义
 * 使用项目主色调，提供更好的视觉体验
 */
#nprogress {
  pointer-events: none;
}

#nprogress .bar {
  background: $login-color-primary !important; // 使用项目主色调
  position: fixed;
  z-index: 1031;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px; // 增加进度条高度，更明显
}

#nprogress .peg {
  display: block;
  position: absolute;
  right: 0px;
  width: 100px;
  height: 100%;
  box-shadow: 0 0 10px $login-color-primary, 0 0 5px $login-color-primary;
  opacity: 1.0;
  transform: rotate(3deg) translate(0px, -4px);
}

#nprogress .spinner {
  display: block;
  position: fixed;
  z-index: 1031;
  top: 15px;
  right: 15px;
}

#nprogress .spinner-icon {
  width: 18px;
  height: 18px;
  box-sizing: border-box;
  border: solid 2px transparent;
  border-top-color: $login-color-primary;
  border-left-color: $login-color-primary;
  border-radius: 50%;
  animation: nprogress-spinner 400ms linear infinite;
}

.nprogress-custom {
  #nprogress .bar {
    background: linear-gradient(to right, $login-color-primary, $login-color-secondary) !important;
  }
}

@keyframes nprogress-spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
